package com.vietnam.power.service;

import java.io.IOException;
import java.util.List;

import com.vietnam.power.domain.FileSearchCriteria;
import com.vietnam.power.domain.FileUpload;

public interface FileService {

	public FileUpload getFileById(int id);

	public List<FileUpload> getFilesByName(String fileName);
	
	public void deleteFile(int id, String appPath);

	public int createImages(String appPath, byte[] bytes, String fileExt, String fileFor);

	public void createThumbImage(String appPath, int fileId, String thumbFor, int x, int y, int w, int h,int resizew,int resizeh) throws IOException;
	
	public boolean validateFileGroup(String name);
	
	public void updateFileStatusToActive(int id,String desc);
	
	public List<FileUpload> searchFiles(FileSearchCriteria s);
	
	public List<FileUpload> getUnusedFiles();
}
